package com.example.team.HotelTitle.Service.BizImpl;

import com.example.team.HotelTitle.Entity.TitleEntity;
import com.example.team.HotelTitle.Mapper.TitleMapper;
import com.example.team.HotelTitle.Service.Biz.TitleBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:SelectAllBizImpl
 * Description:
 *
 * @Author: fy.chg
 * @CreateTime:2024/1/14 10:22
 */

@Service
public class TitleBizImpl implements TitleBiz {

    @Autowired
    TitleMapper titleMapper ;
    @Override
    public List<TitleEntity> selectAll() {
        return titleMapper.selectAll();
    }

    @Override
    public TitleEntity show(int id) {
        return titleMapper.show(id);
    }

    @Override
    public int add(TitleEntity titleEntity) {
        return titleMapper.add(titleEntity);
    }

    @Override
    public List<TitleEntity> selectByState(TitleEntity titleEntity) {
        return titleMapper.selectByState(titleEntity) ;
    }
}
